package com.ease.map.style {
   import com.ease.map.common.enum.AlignmentEnum;
   
   import flash.geom.Point;
   import com.ease.map.style.AbstractStyle;
   import com.ease.map.style.IStyle;

   /**
    * 点（矢量）设施样式类
    */
   public class PointStyle extends AbstractStyle {
      /**颜色*/
      public var color:uint = 0;
      /**透明度*/
      public var alpha:Number = 1.0;
      /**对齐方式*/
      public var alignment:int = AlignmentEnum.CENTER;
      /**旋转角度*/
      public var rotation:String = "0.0";
      /**缩放比例*/
      public var scale:Array = [1.0];
      /**符号*/
      public var symbolClass:Class = null;

      public function PointStyle() {
         super();
      }

      /**
       * 克隆
       */
      override public function clone():IStyle {
         var s:PointStyle = new PointStyle();
         s.color = this.color;
         s.alpha = this.alpha;
         s.alignment = this.alignment;
         s.rotation = this.rotation;
         s.scale = this.scale;
         s.symbolClass = this.symbolClass;
         return s;
      }
      
      public static function getDefaultStyle():PointStyle {
         var defaultStyle:PointStyle = new PointStyle();
         return defaultStyle;
      }

   }
}